package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("商品库存-采购退货实体类")
@TableName("commodity_repertory")
public class CommodityRepertory implements Serializable {

    private static final long serialVersionUID = -5627286597494645731L;
    @ApiModelProperty(name = "id", value = "id", dataType = "Integer")
    private int id;
    @ApiModelProperty(name = "commodityType", value = "规格分类", dataType = "String")
    private String commodityType;
    @ApiModelProperty(name = "commoditySize", value = "尺寸", dataType = "String")
    private String commoditySize;
    @ApiModelProperty(name = "commodityId", value = "商品ID", dataType = "Integer")
    private int commodityId;
    @ApiModelProperty(name = "repertoryType",value = "库存类型（1.采购，2.退货）",dataType = "Integer")
    private String repertoryType;
    @ApiModelProperty(name = "quantity",value = "数量",dataType = "Integer")
    private int quantity;
    @ApiModelProperty(name = "createdBy",value = "createdBy",dataType = "String")
    private String createdBy;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdTime", value = "createdTime", dataType = "Date")
    private Date createdTime;
    @ApiModelProperty(name = "updatedBy",value = "updatedBy",dataType = "String")
    private String updatedBy;
    @ApiModelProperty(name = "updatedTime",value = "updatedTime",dataType = "Date")
    private Date updatedTime;

}
